<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台管理系统 - Layui</title>
    {load href="/static/admin/layui/js/jquery-3.3.1.min.js" /}
    {load href="/static/admin/layui/layui.js" /}
    {load href="/static/admin/layui/css/layui.css" /}
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">后台管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="/admin/Product/productListStatus">已上架商品</a></li>
            <li class="layui-nav-item"><a href="#" id="lqb">预览</a></li>
            <li class="layui-nav-item"><a href="/admin/Registered/noMoney" >没有借款</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    {:think\\facade\\Session::get('user','user_session')}
                </a>
                <!--<dl class="layui-nav-child">-->
                    <!--<dd><a href="">基本资料</a></dd>-->
                    <!--<dd><a href="">安全设置</a></dd>-->
                <!--</dl>-->
            </li>
            <li class="layui-nav-item"><a href="/admin/Index/quit">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-shrink=""  lay-filter="test">
                <li class="layui-nav-item {if ($Request.path == 'admin/Product/productList') OR ($Request.path == 'admin/Click/index') OR ($Request.path == 'admin/Product/addProduct') OR ($Request.path == 'admin/Category/index')
              OR ($Request.path == 'admin/Category/addCategory') }layui-nav-itemed{/if}">
                    <a class="" href="javascript:;">产品管理</a>
                    <dl class="layui-nav-child">
                        <dd class="{if $Request.path == 'admin/Product/productList'}layui-this{/if}"><a href="/admin/Product/productList">产品列表</a></dd>
                        <dd class="{if $Request.path == 'admin/Click/index'}layui-this{/if}"><a href="/admin/Click/index">产品点击</a></dd>
                        <dd class="{if $Request.path == 'admin/Product/addProduct'}layui-this{/if}"><a href="/admin/Product/addProduct">添加产品</a></dd>
                        <dd class="{if $Request.path == 'admin/Category/index'}layui-this{/if}"><a href="/admin/Category/index">产品分类</a></dd>
                        <dd class="{if $Request.path == 'admin/Category/addCategory'}layui-this{/if}"><a href="/admin/Category/addCategory">添加分类</a></dd>
                        <!--<dd><a href="/admin/Category/index">推广等级</a></dd>-->
                        <!--<dd><a href="/admin/Grade/fetch_add_grade">添加等级</a></dd>-->
                    </dl>
                </li>
                <li class="layui-nav-item {if ($Request.path == 'admin/Banner/allBanner') OR ($Request.path == 'admin/Banner/addBanner') }layui-nav-itemed{/if}">
                    <a href="javascript:;">轮播图</a>
                    <dl class="layui-nav-child">
                        <dd class="{if $Request.path == 'admin/Banner/allBanner'}layui-this{/if}"><a href="/admin/Banner/allBanner">轮播图</a></dd>
                        <dd class="{if $Request.path == 'admin/Banner/addBanner'}layui-this{/if}"><a href="/admin/Banner/addBanner">添加轮播图</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item {if ($Request.path == 'admin/Popularize/index') OR ($Request.path == 'admin/Popularize/Management') OR ($Request.path == 'admin/Popularize/getAllPopularize')
              OR ($Request.path == 'admin/Registered/index') }layui-nav-itemed{/if}">
                    <a href="javascript:;">推广管理</a>
                    <dl class="layui-nav-child">
                        <dd class="{if $Request.path == 'admin/Popularize/index'}layui-this{/if}"><a href="/admin/Popularize/index">添加推广账号</a></dd>
                        <dd class="{if $Request.path == 'admin/Popularize/Management'}layui-this{/if}"><a href="/admin/Popularize/Management">管理推广账号</a></dd>
                        <dd class="{if $Request.path == 'admin/Popularize/getAllPopularize'}layui-this{/if}"><a href="/admin/Popularize/getAllPopularize">查看所有推广</a></dd>
                        <dd class="{if $Request.path == 'admin/Registered/index'}layui-this{/if}"><a href="/admin/Registered/index">查看所有注册</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item  {if ($Request.path == 'admin/Admin/index') OR ($Request.path == 'admin/Admin/adminList') }layui-nav-itemed{/if}">
                    <a href="javascript:;">登陆账号</a>
                    <dl class="layui-nav-child">
                        <dd class="{if $Request.path == 'admin/Admin/index'}layui-this{/if}"><a href="/admin/Admin/index">添加后台登陆账号</a></dd>
                        <dd class="{if $Request.path == 'admin/Admin/adminList'}layui-this{/if}"><a href="/admin/Admin/adminList">管理后台登陆账号</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item {if ($Request.path == 'admin/File/index') OR ($Request.path == 'admin/Log/index') }layui-nav-itemed{/if}">
                    <a href="javascript:;">系统管理</a>
                    <dl class="layui-nav-child">
                        <dd class="{if $Request.path == 'admin/File/index'}layui-this{/if}"><a href="/admin/File/index">图片管理</a></dd>
                        <dd class="{if $Request.path == 'admin/Log/index'}layui-this{/if}"><a href="/admin/Log/index">操作日志</a></dd>
                        <dd class="{if $Request.path == 'admin/Error/index'}layui-this{/if}"><a href="/admin/Error/index">错误日志</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div id="main" class="layui-body">
        <!-- 内容主体区域 -->
        <blockquote class="layui-elem-quote" style="margin: 15px">内容变量</blockquote>
        {block name="main"}{/block}
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 感谢
    </div>
</div>
<script>
    //JavaScript代码区域
    var url = window.location.href;
    var callback = url.split("&").pop().replace(/callback=/, "");

    function getQueryVariable(variable)
    {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }

    layui.use(['element','layer'], function(){
        var element = layui.element;
        var layer = layui.layer;
        $("#lqb").click(function(){
            layer.open({
                type: 2,
                area: ['840px', '480px'],
                fixed: false, //不固定
                maxmin: true,
                content: 'http://www.lqb2018.cn',
            });
        });
    });
</script>
</body>
</html>